package com.muyu.system.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;


/**
 * 商品分类对象 danmo_shopping_category
 *
 * @author yangle
 * @date 2024-09-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoShoppingCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 商品子分类信息 */
    private List<DanmoShoppingSubcategory> danmoShoppingSubcategoryList;

//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setCategoryName(String categoryName)
//    {
//        this.categoryName = categoryName;
//    }
//
//    public String getCategoryName()
//    {
//        return categoryName;
//    }
//
//    public List<DanmoShoppingSubcategory> getDanmoShoppingSubcategoryList()
//    {
//        return danmoShoppingSubcategoryList;
//    }
//
//    public void setDanmoShoppingSubcategoryList(List<DanmoShoppingSubcategory> danmoShoppingSubcategoryList)
//    {
//        this.danmoShoppingSubcategoryList = danmoShoppingSubcategoryList;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryName", getCategoryName())
            .append("danmoShoppingSubcategoryList", getDanmoShoppingSubcategoryList())
            .toString();
    }
}
